<template>
  <div v-if="asset">
    <div>资产名称:{{ asset.assetName }}</div>
    <div>资产重要程度:{{ importance[asset.importance] }}</div>
    <div v-if="asset.assetTag">
      资产标签：
      <span
        v-for="i in asset.assetTag"
        :key="i.assetTagId"
        style="margin-right: 5px"
      >
        {{ i.tag }}
      </span>
    </div>
    <div v-else>资产标签：暂无数据</div>
    <div>
      责任人：{{ asset.respPersonName ? asset.respPersonName : '暂无数据' }}
    </div>
  </div>
  <div v-else>{{ ip }}</div>
</template>

<script>
export default {
  name: 'SopeTooltip',
  components: {},
  props: {
    asset: {
      type: Object,
      default: () => {}
    },
    importance: {
      type: Object,
      default: () => {}
    },
    ip: {
      type: String,
      default: ''
    }
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
}
</script>

<style scoped lang="scss"></style>
